using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class quicklogin : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        User u = new User(
        (string)Request["up_username"],
        (string)Request["up_zip"],
        int.Parse(Request["up_range"]));
        Session["user"] = u;

        GridPool upool = (GridPool)Application["UserPool"];
        if (upool == null)
        {
            Application["UserPool"] = new GridPool();
            upool = (GridPool)Application["UserPool"];
        }
        upool.Add(u);

        Response.Redirect(@"chat_gadget.aspx#bottom");
    }
}
